package StudyCode.summary.Basic.stringbuilder;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class StringBuilderConstructors {

	public static void main(String[] args) {
		StringBuilder buffer1 = new StringBuilder();
		StringBuilder buffer2 = new StringBuilder(8);
		StringBuilder buffer3 = new StringBuilder("hello");
		StringBuilder buffer4 = new StringBuilder(new StringBuffer("World"));

		System.out.printf("buffer1 = \"%s\"\n", buffer1);
		System.out.printf("buffer2 = \"%s\"\n", buffer2);
		System.out.printf("buffer3 = \"%s\"\n", buffer3);
		System.out.printf("buffer4 = \"%s\"\n", buffer4);
	}

}
